requirejs.config({
    baseUrl: './src/',
    paths: {
        'petite-vue': '../lib/petite-vue.umd',
        'friendly-petite-vue': '../lib/friendly-petite-vue',
    }
})

;(function(){
    var found = null
    for (var i = 0; !found && i < document.scripts.length; i++) {
        var script = document.scripts[i]
        var module = script.getAttribute('view-main')
        if (module) {
            found = script
        }
    }

    if (found) {
        requirejs([module])
    }
}())